<?php
    /**
    * 4 status sont définis : 
    *   Prod
    *   PreProd
    *   Dev
    *   Test 
    */
    define('__STATUT__', 'Dev');
    define('__RACINE__', '/Applications/MAMP/htdocs/supervisor/');
    define('__ADRESSE_CLASSES__', '/Applications/MAMP/htdocs/supervisor/classes/');
    require('config.bdd.php');
    //Charge les classes nécessaires
    function __autoload($className) {
        $className = str_replace('\\', '/', $className);
        if (!class_exists($className, false)) {
            require(__ADRESSE_CLASSES__.$className.'.php');
        }
    }
    session_start();
?>